
import ajax from './config.js'
export const HTTPGetAddressList = () => ajax('address/list'); //默认GET ,参数：无。是登录用户的收货地址
export const HTTPSaveAddress = (params) => ajax('address/save',params,"POST"); 
export const HTTPGetAddressDetailById = (params) => ajax('address/detail',params); //参数：{id}

export const HTTPDeleteAddressById = (params) => ajax('address/delete',params,"POST"); //参数：{id}
export const HTTPGetDefaultAddress = (params) => ajax('address/default',params); //参数：{id}  如果传递了id就获取id对应的收货地址，如果没有传递id就获取默认的收货地址	